<template>
  <div class="side_bar_index">
    <logo :collapse="isCollapse" />
    <el-scrollbar wrap-class="scrollbar-wrapper">
      <el-menu
        :collapse="isCollapse"
        :background-color="variables.menuBg"
        :text-color="variables.menuText"
        :unique-opened="false"
        :active-text-color="variables.menuActiveText"
        :collapse-transition="false"
        mode="vertical"
      >
        <!-- <sidebar-item
          v-for="route in permission_routes"
          :key="route.path"
          :item="route"
          :base-path="route.path"
        /> -->
      </el-menu>
    </el-scrollbar>
  </div>
</template>

<script type="text/javascript">
import variables from "@/styles/variables.less";
import Logo from "./Logo";
export default {
  name: "SideBarIndex",
  data() {
    return {
      isCollapse: false
    };
  },
  computed: {
    variables() {
      return variables;
    }
  },
  components: {
    Logo
  }
};
</script>

<style lang="less" scoped>
.side_bar_index {
  width: 200px;
}
</style>
